package com.snail.snailvr.model;

import android.view.View;

/**
 * 侧边栏列表
 * Created by snail on 16/4/19.
 */
public class NavDrawerItem {

    private String title;
    private String sub_title;
    private int iconResId;
    private String cacheSize;
    private boolean showCacheSize = false;
    private boolean showToggle = false;
    private View.OnClickListener mOnClickListener;
    private boolean isShowDrawable = false;

    public NavDrawerItem(String title , String subTitle, int iconResId, View.OnClickListener listener){
        this.title = title;
        this.iconResId = iconResId;
        mOnClickListener=listener;
        this.sub_title = subTitle;
    }

    public NavDrawerItem(String title, String subTitle, int iconResId, boolean showCacheSize, boolean showToggle, View.OnClickListener listener){
        this.title = title;
        this.iconResId = iconResId;
        this.showCacheSize = showCacheSize;
        this.showToggle = showToggle;
        this.sub_title = subTitle;
        mOnClickListener=listener;
    }
    public String getTitle() {
        return title;
    }

    public int getIconResId() {
        return iconResId;
    }

    public String getCacheSize() {
        return cacheSize;
    }

    public void setCacheSize(String cacheSize) {
        this.cacheSize = cacheSize;
    }

    public boolean isShowCacheSize() {
        return showCacheSize;
    }

    public boolean isShowToggle() {
        return showToggle;
    }

    public String getSub_title() {
        return sub_title;
    }

    public void setSub_title(String sub_title) {
        this.sub_title = sub_title;
    }

    public View.OnClickListener getOnClickListener() {
        return mOnClickListener;
    }

    public boolean isShowDrawable() {
        return isShowDrawable;
    }

    public void setIsShowDrawable(boolean isShowDrawable) {
        this.isShowDrawable = isShowDrawable;
    }
}